package com.dao;

import com.bean.User;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by 程振奇 on 2015/9/16.
 */
@Service
public class UserDao {
    @Autowired
    private SqlSessionTemplate sqlSessionTemplate;
    public List<User> getUserById(User user){
        return sqlSessionTemplate.selectList(User.class.getName()+".getUserById",user);
    }

}
